#ifndef __STACK_DEFINE_H__
#define __STACK_DEFINE_H__

#include<iostream>
#include<cstdlib>
#include<stack>
#include<string>

using namespace std;

#define STACK_INIT_SIZE 100
#define STACKINCREAMENT 10
typedef int SElemType;

typedef struct{
    SElemType *base;
    SElemType *top;
    int stacksize;
}SqStack;

typedef enum{
    FAIL, SUCCESS
}Status;

Status InitStack(SqStack &S);
Status Push(SqStack &S, SElemType e);
Status Pop(SqStack &S, SElemType &e);
Status GetTop(SqStack S, SElemType &e);

//app
void conversion();
void LineEdit();
Status ParenCheck(string str);

#endif
